<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Nfc Interactor: NdefNfcSmsRecord Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="nfcinteractor80.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nfc Interactor
   &#160;<span id="projectnumber">2.1.0</span>
   </div>
   <div id="projectbrief">Shows all information about NFC tags available through Qt Mobility APIs. Includes reusable convenience classes for handling additional tag types: Smart Poster, Image and vCard.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">NdefNfcSmsRecord Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="NdefNfcSmsRecord" --><!-- doxytag: inherits="NdefNfcSmartUriRecord" -->
<p>Convenience class for formatting SMS information into an NDEF record, depending on added info either URI or Smart Poster.  
 <a href="class_ndef_nfc_sms_record.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ndefnfcsmsrecord_8h_source.html">ndefnfcsmsrecord.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for NdefNfcSmsRecord:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_ndef_nfc_sms_record.png" usemap="#NdefNfcSmsRecord_map" alt=""/>
  <map id="NdefNfcSmsRecord_map" name="NdefNfcSmsRecord_map">
<area href="class_ndef_nfc_smart_uri_record.html" title="Smart class that uses the smallest possible NDEF record type for storing the requested information - ..." alt="NdefNfcSmartUriRecord" shape="rect" coords="0,56,148,80"/>
<area href="class_ndef_nfc_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ..." alt="NdefNfcSpRecord" shape="rect" coords="0,0,148,24"/>
</map>
 </div></div>

<p><a href="class_ndef_nfc_sms_record-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeec57c77ff4a972f9cb03ce5d22d52a6"></a><!-- doxytag: member="NdefNfcSmsRecord::NdefNfcSmsRecord" ref="aeec57c77ff4a972f9cb03ce5d22d52a6" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sms_record.html#aeec57c77ff4a972f9cb03ce5d22d52a6">NdefNfcSmsRecord</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty Sms record. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88b22dc54f721a08067ab34c5587b9ad"></a><!-- doxytag: member="NdefNfcSmsRecord::smsBody" ref="a88b22dc54f721a08067ab34c5587b9ad" args="() const " -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sms_record.html#a88b22dc54f721a08067ab34c5587b9ad">smsBody</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current body of the short message. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sms_record.html#af3a2a6b480a419a30fbfdec785aceadf">setSmsBody</a> (const QString &amp;smsBody)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the body of the short message.  <a href="#af3a2a6b480a419a30fbfdec785aceadf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc18a9bdbb98057aebf4d85fb7512aee"></a><!-- doxytag: member="NdefNfcSmsRecord::smsNumber" ref="abc18a9bdbb98057aebf4d85fb7512aee" args="() const " -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sms_record.html#abc18a9bdbb98057aebf4d85fb7512aee">smsNumber</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the number the reading phone is supposed to send the short message to. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sms_record.html#a1493fab7678eb061e276e483f82daf01">setSmsNumber</a> (const QString &amp;smsNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the number the reading phone is supposed to send the short message to.  <a href="#a1493fab7678eb061e276e483f82daf01"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Convenience class for formatting SMS information into an NDEF record, depending on added info either URI or Smart Poster. </p>
<p>Touching a tag with SMS information stored on it should trigger a dialog in the phone to send the proposed SMS. This can for example be used to interact with information services that then reply by sending more info per SMS, or for payment services that send a premium SMS to purchase items or content.</p>
<p>Add the recipient number and the SMS message body to the class, which takes care of properly encoding the information into the correct URI.</p>
<p>As this class is based on the Smart URI base class, the payload is formatted as a URI record initially. When first adding Smart Poster information (like a title), the payload instantly transforms into a Smart Poster.</p>
<dl class="version"><dt><b>Version:</b></dt><dd>1.0.0 </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af3a2a6b480a419a30fbfdec785aceadf"></a><!-- doxytag: member="NdefNfcSmsRecord::setSmsBody" ref="af3a2a6b480a419a30fbfdec785aceadf" args="(const QString &amp;smsBody)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSmsRecord::setSmsBody </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>smsBody</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the body of the short message. </p>
<p>Note: the URI content has to be encoded in UTF-8, which should be done by the Qt Mobility URI class. No further transformation is necessary for the SMS use case (e.g., to 7-bit US-ASCII, as would be recommended for Internet URLs). </p>

</div>
</div>
<a class="anchor" id="a1493fab7678eb061e276e483f82daf01"></a><!-- doxytag: member="NdefNfcSmsRecord::setSmsNumber" ref="a1493fab7678eb061e276e483f82daf01" args="(const QString &amp;smsNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSmsRecord::setSmsNumber </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>smsNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the number the reading phone is supposed to send the short message to. </p>
<p>Recommended to store in international format, e.g., +431234... </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="ndefnfcsmsrecord_8h_source.html">ndefnfcsmsrecord.h</a></li>
<li>ndefnfcsmsrecord.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 12 2012 13:32:48 for Nfc Interactor by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
